//
//  TodaySubjectTopView.m
//  口袋
//
//  Created by dllo on 15/5/22.
//  Copyright (c) 2015年 口袋. All rights reserved.
//

#import "TodaySubjectTopView.h"
#define W  self.frame.size.width
#define H  self.frame.size.height
@implementation TodaySubjectTopView
- (void)dealloc
{
    [_imageView release];
    [_contentLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createImage];
    }
    return self;
}
- (void)createImage
{
    self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, W, 0.2 * W)];
    [self.imageView setBackgroundColor:[UIColor grayColor]];
    [self addSubview:self.imageView];
    [self.imageView release];
    
    
    self.contentLabel = [[UILabel alloc]init];
    self.contentLabel.textColor = [UIColor grayColor];
    //self.contentLabel.font = [UIFont systemFontOfSize:15];
    self.contentLabel.numberOfLines = 0;
    [self addSubview:self.contentLabel];
    [self.contentLabel release];
    
    
}

@end
